<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:t="http://myfaces.apache.org/tomahawk"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core">
   <script type="text/javascript" src="http://code.jquery.com/jquery-1.8.1.min.js"></script>

  <head>
      
    <title>SupportIT</title>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
    <f:metadata>
        <f:viewParam name="idno" value="#{modulenbean.modulenId}" />
        <f:viewParam name="studid" value="#{userbean.userId}" />
    </f:metadata>
  </head>
  <h:body>
    <ui:include src="/templates/layout_user.xhtml" />
      <div class="wrapper">
          
          <a href="#signout" style="float:right; color:#ffa52c; margin-top:-27px;
             font-size:16px; font-weight: bold;">Logg ut</a>
             
          <div class="box">
      


	
	<div id="background">
            
		<form id="text_statistic" method="get" action="#users"><b>Modul #{modulenbean.modulenId}</b></form> 
    
                <div class="back"><a href="moduler.xhtml?studid=#{userbean.userId}">Tilbake</a></div>
                       
	<div class="tfclear"></div>
        
        </div>
              <div class="wrapper-modul-text-left">
          <br />    
          <b>Informasjon om modul #{modulenbean.modulenId}</b>
              <p>
                  <h:inputTextarea rows="10" cols="30" disabled="true" value="#{modulenbean.task}" />
              </p>
          
          <b>Krav for modul #{modulenbean.modulenId}</b><br />
          <p>
          <h:inputTextarea rows="10" cols="30" disabled="true" value="#{modulenbean.requirements}" />
          </p>
                       
          
          
              </div>
            
              
        
          
          <div class="modul-right" style="float:right;">
               
                <div class="resource-box">
                <b>Ressursfiler</b><br />
                - blabla.pdf<br />
                - blabla.pdf<br />
                - blabla.pdf<br />
        
                  
         
                </div>
               <br />
                <div class="resource-box-1">
                <b>Levering av modul #{modulenbean.modulenId}.</b><br /><br />
                
                
                
                
                
           
        <h:form enctype="multipart/form-data">
          <h:panelGrid columns="2">
            <h:outputLabel value="Velg fil for å laste opp" for="file"/>
            <t:inputFileUpload  value="#{fileBean.file}" required="true" id="file" />

          </h:panelGrid><br />
            <h:commandButton value="Last opp og lever" class="modul-change" style="float:left; width:140px; margin-top:5px; height:38px;" disabled="#{progressbean.checkProgress(userbean.userId, modulenbean.modulenId)}" action="#{fileBean.progressFeedback(userbean.userId,modulenbean.modulenId)}" />
            
          <h:messages />
        </h:form>
         
                  
            
     

                
            
                <br /><br /><br />
                       <b>Levert fil:</b><br />
                <h:outputText value="#{progressbean.progress.storedfile.name}" /><br />
        <h:outputText class="#{progressbean.giveMeClass(userbean.userId, modulenbean.modulenId)}"  style="float:right; margin-top:-10%;" value="#{progressbean.checkDelivered(userbean.userId, modulenbean.modulenId)}" />
              
              
          </div></div>
              
          </div>
          
              
          </div>
      
  </h:body>
</html>